package com.usdt.system.mapper.cp;

import java.util.LinkedHashMap;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.usdt.common.mybatis.mapper.BaseMapper;
import com.usdt.system.domain.cp.ActivityEntity;
import com.usdt.system.domain.resp.ActivityRespVO;
import com.usdt.system.dto.cp.ActivityListExcelDTO;
import com.usdt.system.dto.cp.ActivityPointsExcelDTO;

public interface ActivityMapper extends BaseMapper<ActivityEntity> {

	IPage<ActivityRespVO> selectPageList1(Page page, 
			@Param("activityCategory")Integer activityCategory, 
			@Param("activityType")Integer activityType, 
			@Param("keyWord")String keyWord,
			@Param("activityStatus")Byte activityStatus, 
			@Param("startDate")String startDate, 
			@Param("endDate")String endDate,
			@Param("deptId")String deptId
			);

	List<ActivityListExcelDTO> selectList1(
			@Param("activityCategory")Integer activityCategory, 
			@Param("activityType")Integer activityType, 
			@Param("keyWord")String keyWord,
			@Param("activityStatus")Byte activityStatus, 
			@Param("startDate")String startDate, 
			@Param("endDate")String endDate,
			@Param("deptId")String deptId
			);

	//
	LinkedHashMap<String, Object> selectOneById1(@Param("id") Integer id);
	
	//查询活动--带状态
	ActivityRespVO selectOneById2(@Param("id") Integer id);

	List<ActivityPointsExcelDTO> getPoints(
			@Param("deptId")String deptId,
			@Param("startDate")String startDate, 
			@Param("endDate")String endDate);

}
